package com.jide.treetable;
import	java.util.Date;

import com.jidesoft.grid.DefaultExpandableRow;
import com.thghh.table.BeanColumn;
import lombok.Data;

@Data
public class Task extends DefaultExpandableRow {
    @BeanColumn(index = 0, name = "name", editable = true)
    String name;
    @BeanColumn(index = 1, name = "completed", editable = true)
    double completed;
    @BeanColumn(index = 2, name = "duration", editable = true)
    double duration;
    @BeanColumn(index = 3, name = "work", editable = true)
    double work;
    @BeanColumn(index = 4, name = "startTime", editable = true)
    Date startTime;
    @BeanColumn(index = 5, name = "endTime", editable = true)
    Date endTime;

    public Task() {
    }

    public Task(String name, double completed, double duration, double work, Date startTime, Date endTime) {
        this.name = name;
        this.completed = completed;
        this.duration = duration;
        this.work = work;
        this.startTime = startTime;
        this.endTime = endTime;
    }


    @Override
    public Object getValueAt(int i) {
        return null;
    }


}